package com.wholeintech.entity;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

@Table(name = "BoxInfo")
public class BoxInfo extends EntityBase {
    @Column(name = "name")
    private String name;

    @Column(name = "boxId")
    private String boxId;

    @Column(name = "macAddr")
    private String macAddr;

    @Column(name = "zkey")
    private String zkey;

    @Column(name = "houseId")
    private String houseId;

    @Column(name = "phyisicalId")
    private String phyisicalId;

    @Column(name = "ableDeviceId")
    private long ableDeviceId;

    @Column(name = "regionId")
    private int regionId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBoxId() {
        return boxId;
    }

    public void setBoxId(String boxId) {
        this.boxId = boxId;
    }

    public String getMacAddr() {
        return macAddr;
    }

    public void setMacAddr(String macAddr) {
        this.macAddr = macAddr;
    }

    public String getZkey() {
        return zkey;
    }

    public void setZkey(String zkey) {
        this.zkey = zkey;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getPhyisicalId() {
        return phyisicalId;
    }

    public void setPhyisicalId(String phyisicalId) {
        this.phyisicalId = phyisicalId;
    }

    public long getAbleDeviceId() {
        return ableDeviceId;
    }

    public void setAbleDeviceId(long ableDeviceId) {
        this.ableDeviceId = ableDeviceId;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }


    @Override
    public String toString() {
        return String.format("name=%s, boxId=%s, macAddr=%s, zkey=%s,  regionId=%s", name, boxId, macAddr, zkey, regionId);
    }
}
